package com.yyk.yykywd

/**
 * 文件描述：
 * Created by guo on 2019-12-04.
 */
fun cutTwoCharacter(s: String): String {
    return if (s.length < 2) {
        s
    } else {
        s.substring(s.length - 2)
    }
}

fun cutOneCharacter(s: String): String {
    return s.substring(0, s.length - 1)
}